<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>企业管理系统</title>

    <!-- Bootstrap -->
    <link href="../bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="../css/list.css" rel="stylesheet">
    <link href="../css/setting.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid clear">
    <div class="nav-menu">
        <div class="nav navbar-nav navbar-left">
            <a href="">
                企业管理系统
            </a>
        </div>
        <div class="nav navbar-nav navbar-right">
            <li class="dropdown">
                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                    ${empty sessionScope.user.nickName ? '用户昵称未设置' : sessionScope.user.nickName }
                    <span class="caret"></span></a>
                <ul class="dropdown-menu">
<%--                    <li><a href="./setting.jsp">设置</a></li>--%>
<%--                    <li role="separator" class="divider"></li>--%>
                    <li><a href="logout">退出</a></li>
                </ul>
            </li>
        </div>
        <div class="clear"></div>
    </div>
    <div class="back-box">
        <a href="../index.jsp" class="back-btn  btn-default btn-lg">&lt;&nbsp;返&nbsp;&nbsp;回</a>
    </div>
    <div class="container content-box">
        <div class="row list-title">
            <span>用户设置中心</span>
        </div>
        <div class="row setting-box">
            <div class="alert alert-info message" role="alert">
                请填写需要修改的内容后，点击 <b>确认修改</b> 按钮,无需修改，则留空！
            </div>
            <form class="form-horizontal" method="post" action="../users?type=setting">
                <div class="form-group hidden">
                    <label for="input-user-id" class="col-sm-offset-2 col-sm-2 control-label">用户主键</label>
                    <div class="col-sm-4">
                        <input type="password" class="form-control input-lg" id="input-user-id" name="id" readonly value="${sessionScope.user.id}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword" class="col-sm-offset-2 col-sm-2 control-label">修改密码</label>
                    <div class="col-sm-4">
                        <input type="password" class="form-control input-lg" id="inputPassword" name="password" placeholder="请输入修改后的密码">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputNickName" class="col-sm-offset-2 col-sm-2 control-label">修改昵称</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control input-lg" id="inputNickName" name="nick_name" placeholder="请输入修改后的昵称">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-6">
                        <button type="submit" class="btn btn-info btn-lg">确认修改</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>
</body>
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="${pageContext.request.contextPath}/jQuery/jquery-3.5.1.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="${pageContext.request.contextPath}/bootstrap-3.3.7/js/bootstrap.min.js"></script>
</html>
<script>
	$(function () {

		/* 消息弹窗动画 */
		setTimeout(function () {
			$('.message').fadeToggle();
			setTimeout(function () {
				$('.message').fadeToggle();
			}, 2000)
		}, 500)
	})
</script>